/**
 * esta classe e responsavel pelo model dos agents do tipo rocknrollracing
 * nla contera dados que so tipo de agent rocknrollracing tera
 */
 
import corejuliano.gameelement.*;
import corejuliano.gameelement.agent.*;

import flash.geom.*;

import rocknrollracing.gameelement.*;

 // esta classe depois deve virar  o agentModelGameElement
class rocknrollracing.gameelement.agent.RocknRollRacingAgentModel extends GameElementModel 
{
	private var life:Number;
	private var racingPosition:Number;
	private var activeState:String;
	private var direction:Number;
	private var rotation:Number = 0;

	public function RocknRollRacingAgentModel(id:String)
	{
		super(id);
	}
	
	public function addLife(life:Number):Void
	{
		this.life += life;
	}	

	public function getLife():Number
	{
		return life;
	}

	public function setLife(life:Number):Void
	{
		this.life = life;
	}

	public function getRacingPosition():Number
	{
		return racingPosition;
	}

	public function setRacingPosition(racingPosition:Number):Void
	{
		this.racingPosition = racingPosition;
	}

	public function toString():String
	{
		return "rocknrollracing.gameelement.agent.RocknRollRacingAgentModel";
	}

	public function getDirection():Number
	{
		return direction;
	}

	public function setDirection(direction:Number):Void
	{
		this.direction = direction;
	}

	public function getActiveState():String
	{
		return activeState;
	}

	public function setActiveState(activeState:String):Void
	{
		this.activeState = activeState;
	}

	public function getRotation():Number
	{
		return rotation;
	}

	public function setRotation(rotation:Number):Void
	{
		this.rotation = rotation;
	}
	
	public function addRotation(rotation:Number):Void
	{
		this.rotation += rotation;
	}

}